<h1>Listing components</h1>

<table>
  <tr>
    <th>Name</th>
    <th>Type</th>
    <th>Composite</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @components.each do |component| %>
  <tr>
    <td><%= component.name %></td>
    <td><%= component.component_type %></td>
    <td><%= component.composite %></td>
    <td><%= link_to 'Show', component %></td>
    <td><%= link_to 'Edit', edit_component_path(component) %></td>
    <td><%= link_to 'Destroy', component, method: :delete, data: { confirm: 'Are you sure?' } %></td>
  </tr>
<% end %>
</table>

<br />

 <!-- <%= link_to 'New Component', new_component_path %> -->
